{include file="$AdminFullPath/skins/$DefaultSkin/header.tpl" title=foo}

<table width="100%">
  <tr>
    <td class="module_title" nowrap>
      <a href="index.php">{$SiteTitle}</a> &raquo; <a href="{$PHPSELF}?mod={$mod}">{$OrbitFAQTitle}</a> &raquo; Modify Existing FAQ
    </td>
  </tr>
</table>
<br />

<table cellspacing="1" class="index_body">

  {if $Errors != ''}
  <tr>
    <td colspan="2">
      <table width="100%" class="message_tbl">
        <tr>
          <td style="vertical-align: bottom;" width="20">
            <img src="skins/{$DefaultSkin}/images/error.png">
          </td>
          <td class="message" nowrap>
            <b>We found some errors with your posting. Please solve the following:<br /></b>
            {$Errors}
          </td>
        </tr>
      </table>
    </td>
  </tr>
  {/if}

  <tr>
    <td>
      <form ACTION="{$PHPSELF}?mod={$mod}&action=modify&faq={$posted_id}&posted=yes" METHOD="post" NAME="FORM_MODIFY_FAQ">
      <table style="width:400px;">

        <tr>
          <td class="details" width="30" valign="top">
            Title:
          </td>
          <td>
            <input type="text" class="post postbig" name="posted_title" value="{$posted_title}" MAXLENGTH='120' />
          </td>
        </tr>

        <tr>
          <td class="details" width="30" valign="top">
            Description:
          </td>
          <td>
            <TEXTAREA class="post postbig" name="posted_desc">{$posted_desc}</TEXTAREA>
          </td>
        </tr>

        <tr>
          <td class="details" valign="top" nowrap>
            Allow User Posting?
          </td>
          <td nowrap>
            Yes: <input type="radio" name="posted_allowuserposts" value="1" {if $posted_allowuserposts != '0'} checked{/if}/>
            No: <input type="radio" name="posted_allowuserposts" value="0" {if $posted_allowuserposts == '0'} checked{/if}/>
          </td>
        </tr>

        <tr>
          <td class="details" valign="top" nowrap>
            Allow Public Access?
          </td>
          <td>
            Yes: <input type="radio" name="posted_public" value="1" {if $posted_public != '0'} checked{/if}/>
            No: <input type="radio" name="posted_public" value="0" {if $posted_public == '0'} checked{/if}/>
          </td>
        </tr>

        <tr>
          <td nowrap>
          </td>
          <td nowrap>
            <br />
          </td>
        </tr>

        <tr>
          <td nowrap valign="top">
            Allocated Groups:<br />
            All/None <input type="checkbox" onclick="selectAllOptions( this, 'posted_groups[]' )" />
          </td>
          <td nowrap>
              <select MULTIPLE size="5" name="posted_groups[]" class="post postbig">
                {section name=GroupPulldown loop=$GroupPulldown}
                <option value="{$GroupPulldown[GroupPulldown].group_id}" {$GroupPulldown[GroupPulldown].group_selected}>{$GroupPulldown[GroupPulldown].group_title}</option>
                {/section}
              </select>(optional)
           </td>
        </tr>


        <tr>
          <td colspan="3" align="center"><br /><br />
            <input class="button" type="submit" value="Submit" />
          </td>
        </tr>

      </table>
      </form>

    </td>
  </tr>

</table>

{include file="$AdminFullPath/skins/$DefaultSkin/footer.tpl"}